<style>
	.payRent{position: fixed; height:420px; width:540px;border-radius: 5px;display:none;z-index:3333;background-color:#fff}
	.payRent img{display:block;margin:100px auto 0}
	.payRent .gb{cursor: pointer;float: right;  font-size: 50px;  margin-right: 20px;  margin-top: 10px;}
	.payRent font{display: block;text-align: center;font-size: 18px;  margin-top: 15px;}
</style>
<script src="//cdn.bootcss.com/jquery/2.1.4/jquery.min.js"></script>
<script src="//cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>   

</head>

<body class='index-body'>
<div class="wrap-index">
<script>
function login(){
	$('.login').css({"left":($(window).width()-420)/2,"top":($(window).height()-450)/2}).show();
}
function jump(){
	 window.location.href='/';
}
function logout() {
	var id=1;
    $.post('/Home/Index/logout',{id:id},function(data){
    	window.location.reload();
    })
}

	var APP = "__APP__";
	$(function(){
		/*****登录*****/
		$('.login-text').on('click',function (){
			if($(this).parent().attr("class") == "li6"){
				$("input[name='loca']").val("/pay.html");
			}
			$('.wrap-black').show().css('height',$(document).height());
			$('.login').css({"left":($(window).width()-420)/2,"top":($(window).height()-450)/2}).show();
			
		})
		
		$('input[placeholder]').each(function (){
			var pla = $(this).attr('placeholder');
			$(this).val(pla);
		})
		
		$('.itxt-js').focus(function (){
			if($(this).val() == $(this).attr('placeholder')){
				$(this).val('')
			}
		}).blur(function (){
			if($(this).val() == ""){
				$(this).val($(this).attr('placeholder'));
			}
		})
	});
</script>
<!---------黑色层------------->
<div class="wrap-black"></div>
<!----------登录------------->
<div class="login" style="display: none">
    <form method="post" action="{:U('dologin')}" id="login">
	    <div class="login-form clearfix">
	        <p class="login-text1 login-b">
	        	<input type="text" id="username" class="itxt-js required" name="username" placeholder="账号">
	        </p>
	        <div class="error1"></div>
	        <div class="login-text2 login-b clearfix">
	            <p class="fl lo1">
	            	<input type="text" id="password" name="password" class="itxt-js required" placeholder="密码"></p>
	        </div>
	        <div class="error2"></div>
	        <div class="Sec-sub Sec-sub1 mt-20">
	            <p class="sub-style">
	                <input type="submit" id="submit" value="登录" />
	            </p>
	        </div>
	    </div>
	    <input type="hidden" name="loca" value="{$loca}" />
	</form>
</div>
<div class="header" style="background:none">
	<div class="headerBox">
	
		    <if condition="$_SESSION['user']">
	        	<p class="login-btn fl" style="float:right; color:#7b7b7b">{$_SESSION["user"]}&nbsp;<a href="javascript:void(0)" onclick="logout()">退出</a></p>
	        <else />
	    		<p class="login-btn fl" style="float:right; color:#7b7b7b"><a href="javascript:void(0)" onclick="login()">账号登录</a></p>     	
	    	</if>
	</div>    
	<h2> 米家全景相机</h2>
	<h2>App&固件 版本发布后他</h1>
	<div>
		<input type='button' onclick="jump()" value="APP软件更新"></input>
		<input type='button' onclick="jump()" value="相机固件更新"></input>

	</div>
</div>

    
